/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.geradormvc.modelo.dominio.controle;

import br.com.geradormvc.excessao.GeradorMVCException;
import br.com.geradormvc.persistencia.IFactoryGateway;
import br.com.geradormvc.persistencia.IGatewayPrincipal;
import br.com.geradormvc.persistencia.impl.FactoryGateway;
import java.util.List;

/**
 *
 * @author douglas
 */
public class ControlePrincipal {

    public List pesquisarDatabase() throws GeradorMVCException {
        IFactoryGateway factoryGateway = new FactoryGateway();
        IGatewayPrincipal gatewayPrincipal = factoryGateway.getGatewayPrincipal();
        return gatewayPrincipal.pesquisarDatabase();
    }

    public List pesquisarTabelas() throws GeradorMVCException {
        IFactoryGateway factoryGateway = new FactoryGateway();
        IGatewayPrincipal gatewayPrincipal = factoryGateway.getGatewayPrincipal();
        return gatewayPrincipal.pesquisarTabelas();
    }

    public List pesquisarColunasTabela(String objName, String objKind) throws GeradorMVCException {
        IFactoryGateway factoryGateway = new FactoryGateway();
        IGatewayPrincipal gatewayPrincipal = factoryGateway.getGatewayPrincipal();
        return gatewayPrincipal.pesquisarColunasTabela(objName, objKind);
    }
}
